﻿/**********************************************************************
 * @file   FITKRadiossAdaptorInteractionTiedDefault.h
 * @brief  默认Tie属性读取适配器，设置某些参数的默认值
 * @author wangning (2185896382@qq.com)
 * @date   2025-09-15
 *********************************************************************/
#ifndef __FITKRadiossAdaptorInteractionTiedDefault_H__
#define __FITKRadiossAdaptorInteractionTiedDefault_H__
#include "FITKRadiossRadIOAPI.h"
#include "FITKRadiossAbstractAdaptor.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"

namespace Radioss
{
    class FITKInteractionKinematicTiedDefault;
    /**
     * @brief  默认Tie属性读取适配器，设置某些参数的默认值
     * @author wangning (2185896382@qq.com)
     * @date   2025-09-15     
     */
    class FITKRadiossRadIOAPI FITKRadiossAdaptorInteractionTiedDefault : public FITKRadiossAbstractAdaptor
    {
    public:
        explicit FITKRadiossAdaptorInteractionTiedDefault() = default;
        ~FITKRadiossAdaptorInteractionTiedDefault() = default;
        /**
         * @brief
         * @return   QString
         * @author wangning (2185896382@qq.com)
         * @date   2025-09-15
         */
        QString getAdaptorClass() override;
        /**
         * @brief    适配器读取
         * @return   bool
         * @author wangning (2185896382@qq.com)
         * @date   2025-09-15
         */
        bool adaptR() override;
        /**
         * @brief    适配器写出
         * @return   bool
         * @author wangning (2185896382@qq.com)
         * @date   2025-09-15
         */
        bool adaptW() override;
    private:
        /**
         * @brief    读取value
         * @return   bool
         * @author wangning (2185896382@qq.com)
         * @date   2025-09-15
         */
        bool readDefTie(FITKInteractionKinematicTiedDefault* val);
        /**
         * @brief    读取文件参数并赋值给对象
         * @param[i] lines
         * @param[i] shellval
         * @return   bool
         * @author wangning (2185896382@qq.com)
         * @date   2025-09-15
         */
        bool readParam(const QStringList& lines, FITKInteractionKinematicTiedDefault* tie);
    };
    /**
     * @brief  注册适配器
     * @author wangning (2185896382@qq.com)
     * @date   2025-09-15
     */
    Register2FITKIOAdaptorFactory(rad, Radioss::FITKInteractionKinematicTiedDefault, FITKRadiossAdaptorInteractionTiedDefault);
    RegRadiossRadAdaptor(/DEFAULT/INTER/TYPE2, FITKRadiossAdaptorInteractionTiedDefault);
}
#endif //!__FITKRADIOSSADAPTORPROPSHELLVALUE_H__
